package com.sbtr.business.publishtask.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sbtr.business.publishtask.entity.PublishPredictTask;
import com.sbtr.common.PageDto;
import com.sbtr.open.publishtask.dto.PredictListDto;
import com.sbtr.open.publishtask.dto.PublishPredictTaskDto;

import java.util.List;

public interface IPublishPredictTaskService extends IService<PublishPredictTask> {

    PublishPredictTaskDto findById(Long id);

    PublishPredictTaskDto save(PublishPredictTaskDto dto);

    PageDto<PublishPredictTaskDto> search(PredictListDto dto);

    PageDto<PublishPredictTaskDto> searchList(PredictListDto dto);

    List<PublishPredictTaskDto> findByPublishId(Long publishId);

    Double getPredictPercent(Long id);
}
